package com.baidu.cmsService.dao;

import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * @Author: BSS
 * @create: 2020/6/30/19:07
 */
@Mapper
public interface TopicDao {
    @Delete("delete from t_topic where cid=#{cid}")
    Integer deleteByCid(@Param("cid")Integer cid);

    @Select("select id from t_topic where cid=#{cid}")
    List<Integer> selectIdsByCid(@Param("cid")Integer cid);
}
